#ifndef ZIMAGE_MANAGER_H_
#define ZIMAGE_MANAGER_H_

#include <Common/GlobalDefines.h>
//#include <Common/ZSingleton.h>
#include "ZImage.h"
#include <vector>

GLOBAL_NAMESPACE_BEGIN

class ImageManager //: public Singleton< ImageManager >
{
    typedef std::vector<ImageSpace::Image*> ImageList;
public:
    ImageManager();
    ~ImageManager();

    void init();
    void clear();

    int                 getImageCount(); 
    ImageSpace::Image*  getImageAt(int idx=0);
    void                addImage(ImageSpace::Image* ima);
    void                removeImage(ImageSpace::Image* ima);

private:
    void destroy();

private:
    ImageList images_;
};

GLOBAL_NAMESPACE_END

#endif//ZIMAGE_MANAGER_H_